package cn.template.serve_project.mapper;

import cn.template.serve_project.entity.Menu;
import cn.template.serve_project.vo.menu.MenuVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 权限(Menu)表数据库访问层
 *
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 根据角色查询菜单
     * @param roleId 角色id
     * @return
     */
    List<MenuVO> selectByRole(@Param("roleId") Integer roleId);
}

